package com.cheung.dubbo.client.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.cheung.dubbo.api.HelloService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Create by 777 on 2018/12/20
 */

@RestController
@RequestMapping("/hello")
public class HelloController {


	@Reference
	private HelloService helloService;

	@RequestMapping(value = "/say", method = RequestMethod.POST)
	public Object sayHello(){
		return helloService.sayHello("jjj");

	}
}
